package com.wonyesoft.wuliu.api;

import java.io.File;

/**
 * Created by storm on 14-3-25.
 */
public class GagApi {

	//Windows
	public static final String HOST = "http://www.4mylove.cn/";
	// Linux
	// public static final String HOST = "http://121.40.18.247:80/";

	// public static final String HOST = "http://192.168.1.113:8080/cqtczh/";

	// private static final String HOST = "http://infinigag-us.aws.af.cm";
	// http://192.168.1.113:8080/cqtczh/shippers/getCarType
	// 议价接口
	public static final String BARGAIN_WITH_FILE = HOST
			+ "fleets/sendMsgWithFile";

	// 议价没有文件
	public static final String BARGAIN_WTHI_OUT_FILE = HOST
			+ "fleets/sendMsgWithOutFile";

	// 议价的信息接口
	public static final String BARGAIN_HISTORY_MESSAGE = HOST
			+ "fleets/getMsgList";

	/**
	 * 用户重新设置密码
	 */
	public static final String PASS_WORD_RESET = HOST
			+ "shipper/resetPasswordForMobile.do";
	/**
	 * 用户获取密码重置的验证码 /getValidateCodeForResetPasswordForMobile.do
	 */
	public static final String PASS_WORD_RESET_GET_CODE = HOST
			+ "shipper/getValidateCodeForResetPasswordForMobile.do";

	// 议价文件的路径

	/**
	 * 取消订单
	 */
	public static final String REJECT_ORDER = HOST
			+ "shippers/shipperCancelOrderApp";

	public static final String RESET_ORDER_STATE = HOST
			+ "shippers/shipperResetOrderApp";

	/**
	 * 拒接回单
	 */
	public static final String USER_REJECT_RECEIPT = HOST
			+ "shippers/shipperRejectReceiptApp";

	/**
	 * 获得接单司机的位置
	 */
	public static final String GET_DRIVER_ADDRESS = HOST
			+ "shippers/getCoordinateApp";

	/**
	 * 获得常用联系人
	 */
	public static final String GET_LINK_MAN = HOST
			+ "contact/listContactForMobile.do";

	/**
	 * 添加常用联系人
	 */
	public static final String ADD_LINK_MAN = HOST
			+ "contact/addConsactForMobile.do";

	/**
	 * 删除常用联系人 removeConsact.do
	 */
	public static final String REMOVE_LINK_MAN = HOST
			+ "contact/removeConsact.do";

	/**
	 * 放弃订单
	 */
	public static final String GIVE_UP_ORDER = HOST
			+ "shippers/shipperGiveUpOrderApp";

	/**
	 * 获得货主的个人信息
	 */
	public static final String GET_CARGO_OWNER_INFO = HOST + "shipper/";

	/**
	 * 货主更新信息
	 */
	public static final String UPDATA_CARGO_OWNER_INFO = HOST
			+ "shipper/completeInfoForMobile.do";

	/**
	 * 货主上传图片
	 */
	public static final String UPDATA_CARGO_OWNER_PHOTO = HOST
			+ "shipper/completeInfoForMobileByHeadPortraitFlie.do";
	/**
	 * ' 确认回单
	 */
	public static final String CompleteOrder = HOST
			+ "shippers/shipperConfirmReceiptApp";

	public static final String PUSH_UP_DATA_URL = HOST
			+ "shipper/completePushNo.do";

	/**
	 * 货主端获得信息
	 */
	public static final String GET_ORDER_DETIL = HOST
			+ "ordermanager/getOrder.do";
	/**
	 * 货主接受接受订单
	 */
	public static final String ACCEPT_ORDER = HOST
			+ "shippers/shipperConfirmOrderApp";
	/**
	 * ----------------------------------------新接口------------------------------
	 * ------------------------
	 * 
	 * /** 总文件夹用来保存文件
	 */
	public static String TCZH_File = File.separator + "tczh";

	/**
	 * 图片文件夹
	 */
	public static String IMAGE_FILE_PATH = TCZH_File + File.separator
			+ "Images" + File.separator;

	/**
	 * 图片地址
	 */
	public static final String IMAGE_PAHT_HOST = HOST + "media/";

	/**
	 * 声音文件夹
	 */
	public static String SOUND_FILE_PATH = TCZH_File + File.separator + "Sound"
			+ File.separator;
	/**
	 * 文件下载类
	 */
	public static String FILE_PATH = TCZH_File + File.separator + "File"
			+ File.separator;

	/**
	 * 创建的文件
	 */
	public static String UP_LOAD_FILE = FILE_PATH + "test.txt";

	// 程序更新连接API_HOST
	public static final String APK_DowndLoad_Path = "http://www.c-ehd.com"
			+ "/down/hz.apk";

	// APK下载保存的路径
	public static final String New_APK_Path = "/sdcard/ECSender/new-sj.apk";

	// 录制声音的路径
	public static final String RecordSoundPaht = TCZH_File + File.separator
			+ "sound" + File.separator;

	/**
	 * ------------------------------------------------------------------------
	 * -----------
	 */

	public static final String BASE_HOST = "http://community.xiaomer.com/";

	// private static final String API_HOST = "http://121.40.18.247/App/api";
	// private static final String API_HOST =
	// "http://192.168.1.113:8080/cqtczh";
	
	//Windows
	private static final String API_HOST = "http://www.4mylove.cn";
	//linux
//	private static final String API_HOST = "http://121.40.18.247:80";
	public static final String SOURCEADRR = HOST + "/uploadFile/";

	public static final String UPAPKPATH = "http://www.4mylove.cn/down/hz.apk";

	public static final String LIST = HOST + "/%1$s/%2$s";

	// 用户注册接口
	public static final String REGISTER = API_HOST
			+ "/shipper/registerForMobile.do";

	// 用户获取验证码接口getValidateCodeForMobile
	public static final String GETCODE = API_HOST
			+ "/shipper/getValidateCodeForMobile.do";

	// 用户登录接口
	public static final String LOGIN = API_HOST + "/shipper/loginFormobile.do";
	// public static final String LOGIN = API_HOST + "/user/login";

	// 判断用户登录接口
	public static final String ISLOGIN = API_HOST + "/user/isLogin";

	// 自动登录接口
	public static final String AUTOLOGIN = API_HOST + "/user/autoLogin";

	// 更新图片接口
	public static final String UPLOADIMAGE = API_HOST + "/image/uploadImg";

	// 密码修改接口
	public static final String PWDCHANGE = API_HOST + "/user/pwdChange";

	// 获取用户信息接口
	public static final String USERINFO = API_HOST + "/user/userinfo";

	// 获取用户信息接口
	public static final String CYADDRESS = API_HOST + "/user/senderinfoInsert";

	// 更新用户信息接口
	public static final String ADDADDRESS = API_HOST + "/user/addAddress";

	// 更新用户信息接口
	public static final String QUERYADDRESS = API_HOST + "/user/queryAddress";

	// 更新用户信息接口
	public static final String UPDATEADDRESS = API_HOST + "/user/updateAddress";

	// 更新用户信息接口
	public static final String USERQRLIST = API_HOST + "/user/updateAddress";

	// 更新用户信息接口
	public static final String USERUPDATE = API_HOST + "/user/userinfoUpdate";
	// 更新用户信息接口
	public static final String USERUPDATEINFO = API_HOST
			+ "/user/updateUserInfo";

	// 更新用户信息接口
	public static final String DELETEADDRESS = API_HOST + "/user/deleteAddress";

	// 检测版本升级接口
	// public static final String CheckVersion = API_HOST +
	// "/version/versionUpdate";
	public static final String CheckVersion = API_HOST
			+ "/sysOperation/getShipperAppVersion";
	// 更新头像接口
	public static final String HeadUp = API_HOST + "/res/headup";

	// 更新头像接口
	public static final String ChildSearch = API_HOST
			+ "/community/childSearch";

	// 获取验证码接口
	public static final String GetVcode = API_HOST + "/user/msgCode";

	// 用户下单接口shippers/placeOrderApp
	// public static final String OnlineOrder = API_HOST + "/order/onlineOrder";
	public static final String OnlineOrder = API_HOST
			+ "/shippers/placeOrderApp";

	/**
	 * 货主下单不要文件
	 */
	public static final String ONLINE_ORDER_WITH_OUT_FILE = API_HOST
			+ "/shippers/placeOrderAppWithOutFile";

	/**
	 * 货主获得下单费用接口
	 */
	public static final String GET_SERVICE_COUNT_ROUT_PRICE = API_HOST
			+ "/shippers/calcPriceApp";

	// 获取计划订单接口
	public static final String QueryOnlineOrder = API_HOST
			+ "/order/queryUserOnlineOrder";

	// 获取计划订单接口
	public static final String GETPLANLIST = API_HOST
			+ "/query/queryOrderListForMobileByCargoownerid.do";

	// 用户更改订单接口
	public static final String USERCHANGELIST = API_HOST
			+ "/order/updateOnlineOrderByUser";

	// 用户确认订单
	public static final String USERCOMFIRM = API_HOST
			+ "/order/updateOnlineOrderByUser";

	// 根据单号获取计划订单接口
	public static final String GETSINGLEPLANLIST = API_HOST
			+ "/order/queryUserOnlineOrder";

	// 根据单号获取计划订单接口
	public static final String SEARCHlIST = API_HOST
			+ "/order/queryCargoTransferLog";

	// 根据车辆类型和公里获取计划订单接口
	public static final String COUNTPRICE = API_HOST
			+ "/order/calValuationPrice";

	// 返回车辆对应资费
	public static final String GETCARPRICE = API_HOST
			+ "/order/queryValuationPrice";

	// 查单定位
	public static final String GETPOSITON = API_HOST
			+ "/position/queryRealTimePosition";

	/**
	 * File.separator 声音存放的路径
	 */
	public static final String BARGAIN_SOUND_FILE_PATH = HOST + "media"
			+ File.separator;

	/**
	 * 服务器保存文件的文件
	 */
	public static final String UP_LOAD_LOG_FILE = HOST
			+ "sysOperation/uploadLog";

}
